<?php
function V_ContentSearch(&$arrayData){
	$ulr = "?".MODUL."=content&".ACTION."=List&".ACTION2."=SearchText";//htmlspecialchars($_SERVER['QUERY_STRING']);
	?>
	<?= CM_showMessage(); ?>
	<?= CM_showError(); ?>
	<table width="100%" height="200%" border="0" cellpadding="3"cellspacing="0" bordercolor="#FF9900" bordercolordark="white">
		<form action="<?=$ulr?>" method="post" name="frmSearchText" id="frmSearchText" >
		<input type="hidden" name="modul" value="<?=CM_getParameter("modul")?>" /> 
		<input type="hidden" name="action" value="<?=CM_getParameter("action")?>" /> 
		<input type="hidden" name="ACTION2" value="<?=CM_getParameter("ACTION2")?>" /> 
	  <tr>
		<td width="324"></td>
	  </tr>
	  <tr>
		<td align="left" valign="top" background="" class="left-menu-aki"><table width="49%" border="1" align="center" cellpadding="3"cellspacing="0" bordercolor="#FF9900" bordercolordark="white">
			<tr class=bk12-140 bgcolor="#FFE59F">
			  <td colspan="3" align="left" ><div align="center"><strong>Tìm Kiếm Th&ocirc;ng Tin</strong></div></td>
		  </tr>
			
			<tr>
			  <td align="left" bgcolor="#FFE59F" class=bk12-140 ><font color="#000066"style="font-family:'Times New Roman', Times, serif"> Loại tin tức:</font></td>
			  <td colspan="2" align="left"><select name="cat_idS" id="cat_idS" style="WIDTH: 200px">
			  <option value="" selected>===== Tìm tất cả=====</option>
			<? 
				 global $db;
				 include_once(DIR_MODEL."md_cat_content.class.php");
				$objcatContent = new MD_CatContent($db);
				$arrayData =  array();      
				$arrayData = $objcatContent->getAll(); 
				
				if (!empty($arrayData)) {   
				foreach  ($arrayData as $row)
				{
					$id=$row["id"];
					$name=$row["name"];
						echo"<option value=$id>$name</option>";
				} // end foreach  ($arrayData_ttDauTu as $row)
				unset($arrayData);
			}
			?>			
		</select></td>
		  </tr>
			<tr>
			  <td align="left" bgcolor="#FFE59F" class=bk12-140 ><font color="#000066" style="font-family:'Times New Roman', Times, serif">Hiển th&#7883;:</font></td>
			  <td colspan="2" align="left"><font style="font-family:'Times New Roman', Times, serif">
				<label></label>
					<input name="showsS" type="radio" value="" <?=$strHienThi1?> checked=checked/>
				   Tất c&#7843;				<label></label>
					<input name="showsS" type="radio" value="1" <?=$strHienThi1?> />
					C&oacute;				<input name="showsS" type="radio" value="0" <?=$strHienThi0 ?> />
                    <label> Kh&ocirc;ng</label></font></td>
		  </tr>
			<tr>
			  <td align="left" bgcolor="#FFE59F" class=bk12-140 ><font color="#000066"style="font-family:'Times New Roman', Times, serif">Trạng thái:</font></td>
			  <td colspan="2" align="left"><SELECT name="section_idS" id="section_idS" style="WIDTH: 200px">
			  		<OPTION value="" selected>=====Tìm tất cả=====</OPTION>
					<OPTION value="1" >Bản Tin Nóng</OPTION>
					<OPTION value="2">Tiêu Điểm</OPTION>
					<OPTION value="3">Tin Mới </OPTION>
			  </SELECT>&nbsp;</td>
		  </tr>
			<tr>
			  <td width="217" align="left" bgcolor="#FFE59F" class=bk12-140 ><font color="#000066"style="font-family:'Times New Roman', Times, serif">T&ecirc;n tin tức:</font></td>
			  <td colspan="2" align="left"><input name="textfield" type="text" class="form200" size="30" /></td>
		    </tr>
			<tr>
			  <td align="left">&nbsp;</td>
			  <td width="301" align="right"><div align="center"><span class="bk12-140">
			      <input type="submit" name="Submit" value="     Tìm   " />
		        <input name="nhaplai" type="reset" id="re" value=" Nhập lại   " />
		      </span></div></td>
			</tr>
		  </table></td>
	  </tr>
	  </form>
	</table>
	
	<?php
}
?>

	